Nevron Open Vision Documentation
Nevron.Nov.Dom Namespace / NDocumentFormat<TDocument,TLoadSettings,TSaveSettings> Class / SaveToFileAsync Method
document to save. Cannot be null.
file to save document to. Cannot be null.
save settings. Can be null
optional progress class


In This Topic
    SaveToFileAsync Method (NDocumentFormat<TDocument,TLoadSettings,TSaveSettings>)
    In This Topic
    Saves the document to the specified file
    Syntax
    'Declaration
     
    
    Public Function SaveToFileAsync( _
       ByVal document As TDocument, _
       ByVal file As NFile, _
       ByVal saveSettings As TSaveSettings, _
       ByVal progress As NProgress _
    ) As NPromise(Of NUndefined)
    'Usage
     
    
    Dim instance As NDocumentFormat(Of TDocument,TLoadSettings,TSaveSettings)
    Dim document As TDocument
    Dim file As NFile
    Dim saveSettings As TSaveSettings
    Dim progress As NProgress
    Dim value As NPromise(Of NUndefined)
     
    value = instance.SaveToFileAsync(document, file, saveSettings, progress)

    Parameters

    document
    document to save. Cannot be null.
    file
    file to save document to. Cannot be null.
    saveSettings
    save settings. Can be null
    progress
    optional progress class

    Return Value

    a promise which resolves to true if document was saved to file, or false if saving was canceled by the user
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also